﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Edit.ascx.vb" Inherits="Control_ToDo_Edit" %>
<script type="text/javascript">

    $(function () {

        $(".TextBox:first").focus();
        $(".Date").datepicker({ dateFormat: 'dd/mm/yy' });
    });
</script>
<asp:UpdatePanel ID="uplTodolist" runat="server">
    <ContentTemplate>
        <div class="content_porletform">
            <div class="HeadTitle">
                <h3>
                    <asp:Label ID="Label3" runat="server" Text="THÊM NHẮC VIỆC" /></h3>
            </div>
            <div class="box_contentform">
                <div class="box_scroll_grid">
                    <div class="DivRequired">
                        <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
                    </div>
                    <div class="Error">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />
                    </div>
                    <div class="DivRow" style="margin-top: 15px">
                        <div class="DivLabel_150">
                            <asp:Label ID="lblSubject" CssClass="TextLabel" runat="server" Text="Tên công việc:" /><span
                                class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtSubject" CssClass="TextBox" runat="server" Text="" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtSubject"
                                Display="None" ErrorMessage="Vui lòng nhập tên công việc" SetFocusOnError="True"> </asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel_150">
                            <asp:Label ID="lblDescription" CssClass="TextLabel" runat="server" Text="Mô tả:" />
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtDescription" CssClass="TextArea" runat="server" Text="" TextMode="MultiLine" />
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel_150">
                            <asp:Label ID="lblStartdate" CssClass="TextLabel" runat="server" Text="Ngày bắt đầu:" />
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtStartdate" CssClass="TextBox Date" runat="server" Text="" Width="108px" />&nbsp;&nbsp;&nbsp;<asp:DropDownList
                                ID="ddlbeHour" AutoPostBack="false" runat="server" Width="50">
                            </asp:DropDownList>
                            &nbsp;:&nbsp;<asp:DropDownList ID="ddlbeMinutes" AutoPostBack="false" runat="server"
                                Width="50">
                            </asp:DropDownList>
                            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
                                ErrorMessage="Bạn nhập ngày bắt đầu chưa đúng định dạng." ValidationExpression="^(?:(?:(?:0?[1-9]|1\d|2[0-8])\/(?:0?[1-9]|1[0-2]))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:(?:(?:31\/0?[13578]|1[02])|(?:(?:29|30)\/(?:0?[1,3-9]|1[0-2])))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:29\/0?2\/(?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26]))))$"
                                ControlToValidate="txtStartdate" Display="None" SetFocusOnError="True">*</asp:RegularExpressionValidator>&nbsp;<asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator2" runat="server" ErrorMessage="Chưa nhập ngày bắt đầu!"
                                    ControlToValidate="txtStartdate" Display="None" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel_150">
                            <asp:Label ID="lblDuedate" CssClass="TextLabel" runat="server" Text="Đến ngày:" />
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtDuedate" CssClass="TextBox Date" runat="server" Text="" Width="108px" />&nbsp;&nbsp;&nbsp;<asp:DropDownList
                                ID="ddlDueDateHour" AutoPostBack="false" runat="server" Width="50">
                            </asp:DropDownList>
                            &nbsp;:&nbsp;<asp:DropDownList ID="ddlDueDateMinute" AutoPostBack="false" runat="server"
                                Width="50">
                            </asp:DropDownList>
                            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                ErrorMessage="Bạn nhập ngày [đến ngày] chưa đúng định dạng." ValidationExpression="^(?:(?:(?:0?[1-9]|1\d|2[0-8])\/(?:0?[1-9]|1[0-2]))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:(?:(?:31\/0?[13578]|1[02])|(?:(?:29|30)\/(?:0?[1,3-9]|1[0-2])))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:29\/0?2\/(?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26]))))$"
                                ControlToValidate="txtStartdate" Display="None" SetFocusOnError="True">*</asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel_150">
                            <asp:Label ID="lblReminddate" CssClass="TextLabel" runat="server" Text="Ngày nhắc:" />
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtReminddate" CssClass="TextBox Date" runat="server" Text="" Width="108px" />&nbsp;&nbsp;&nbsp;<asp:DropDownList
                                ID="ddlRemindDateHour" AutoPostBack="false" runat="server" Width="50">
                            </asp:DropDownList>
                            &nbsp;:&nbsp;<asp:DropDownList ID="ddlRemindDateMinute" AutoPostBack="false" runat="server"
                                Width="50">
                            </asp:DropDownList>
                            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
                                ErrorMessage="Bạn nhập ngày [Ngày nhắc] chưa đúng định dạng." ValidationExpression="^(?:(?:(?:0?[1-9]|1\d|2[0-8])\/(?:0?[1-9]|1[0-2]))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:(?:(?:31\/0?[13578]|1[02])|(?:(?:29|30)\/(?:0?[1,3-9]|1[0-2])))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:29\/0?2\/(?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26]))))$"
                                ControlToValidate="txtReminddate" Display="None" SetFocusOnError="True">*</asp:RegularExpressionValidator>&nbsp;
                        </div>
                    </div>
                    <div class="DivRow" style="height: 30px">
                        <div class="DivLabel_150">
                            <asp:Label ID="Label2" CssClass="TextLabel" runat="server" Text="Actived:" />
                        </div>
                        <div class="DivTextBox" style="margin: 5px 0px 0px 0px">
                            <asp:CheckBox ID="chkIsActive" runat="server" Checked="true" />
                        </div>
                    </div>
                    <%--		<div class="DivRow">
		<div  class="DivLabel_150">
			<asp:Label ID="lblNumberremind" CssClass="TextLabel" runat="server" Text="Numberremind:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtNumberremind" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>--%>
                    <%--		<div class="DivRow">
		<div  class="DivLabel_150">
			<asp:Label ID="lblStatus" CssClass="TextLabel" runat="server" Text="Status:" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtStatus" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>--%>
                    <div class="DivRow">
                        <div class="DivLabel_150">
                            &nbsp;&nbsp;&nbsp;</div>
                        <div class="DivTextBox">
                            <div style="float: left">
                                <asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
                                &nbsp;&nbsp;<asp:Button ID="btnReset" runat="server" CausesValidation="false" CssClass="btn"
                                    Text="Làm lại" /></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div style="display: none">
            <asp:HiddenField ID="hidID" Value="0" runat="server" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
